package com.algorithm;

import java.util.ArrayList;
import java.util.List;

public class list2Array {
	
	public static void main(String[]args){
		List list=new ArrayList();
		for(int i=0;i<10;i++){
			list.add(String.valueOf(i));
		}
	
		print(list);
		
		String str[]=new String[list.size()];
		for(int i=0;i<list.size();i++){
			str[i]=(String) list.get(i);
			System.out.print(str[i]+",");
		}
	}

	private static  void print(Object obj) {
		System.out.println(obj);
	}

}
